package com.ys.service.mall;

import com.bo.vo.R;

import java.util.Map;

public interface TmGoodsService {

	/**
	 * 生成礼品编码
	 */
	String generateGoodsCode();

	R add(Map<String, Object> params);

	R edit(Map<String, Object> params, Long id, Integer numChange);

	R moveTop(Long id) throws Exception;
	
	R resort(String rows);

	void changeNum(Long goodsId, Integer type, Integer numChange, String remark, Long relativeId) throws Exception;
}
